package com.eas.biz.dao.exam.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.exam.dataobject.ExamHistoryDO;
import com.eas.biz.dao.exam.dataobject.ExamHistoryQuery;
import com.eas.biz.dao.exam.interfaces.ExamHistoryDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("examHistoryDao")
public class ExamHistoryDaoImpl extends GenericDaoImpl<ExamHistoryDO> implements ExamHistoryDao {

    public ExamHistoryDO selectById(long id) {
        return selectById("ExamHistory.selectById", id);
    }

    public long insert(ExamHistoryDO exam) {
        return insert("ExamHistory.insert", exam);
    }

    public int deleteById(long id) {
        return deleteById("ExamHistory.deleteById", id);
    }

    public int update(ExamHistoryDO exam) {
        return update("ExamHistory.update", exam);
    }

    public List<ExamHistoryDO> selectByQuery(BaseQuery query) {
        return selectByQuery("ExamHistory.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("ExamHistory.countByQuery", query);
    }

    public int deleteByQuery(ExamHistoryQuery query) {
        return deleteByQuery("ExamHistory.deleteByQuery", query);
    }
}
